<include file="Public/qt_header" title="{$list.nickname}" />

<!--=== Breadcrumbs ===-->

<div class="row-fluid breadcrumbs margin-bottom-20">

    <div class="container">

        <h1 class="pull-left">{$list.nickname}</h1>

        <ul class="pull-right breadcrumb">

            <li>大小：{$list.zsize|formatBytes}</li>

            <li>{$list.create_time|date='Y-m-d',###}</li>

        </ul>

    </div><!--/container-->

</div><!--/breadcrumbs-->



<script type="text/javascript" src="__STATIC__/wap/jquery-1.7.2.min.js"></script>



<style type="text/css">

button {

	height: 40px;

	width: 100%;

	font-size: x-large;

	margin-top: 13px;

}pt>

</style>



<if condition="($list.aqpassword eq '') OR ($list.aqpassword eq $aqpassword)">

	<div id="" class="view row" style="margin-top:30px;">    

	    <div class="span12 margin-bottom-20" style="text-align:center;">

            <if condition="$list.zxlogo neq '' ">

                <img src="__IMG__{$list.zxlogo}" class="img-rounded" width="119" height="118" />

            <else /> 

                <img src="../Public/icon/dafuapk.png" class="img-rounded" width="119" height="118" />

            </if>

	       

	        <div class="spinner" style="padding-top:20px;">

	        <div id="showtext"></div>

	        <div class="loading"></div>

	            <span id="checkinfo">

		            <if condition="$list.ext eq 'ipa'">

		            	<a href="{$list.plist}" class="btn-u btn-u-lg"><i class="fa fa-download"></i> 点击安装</a>

		            <elseif condition="($list.ext eq 'apk') and ($uptype eq '1')"/>

                        

                        <a href="{$list.uptxt}" class="btn-u btn-u-lg"><i class="fa fa-download"></i> 点击安装</a>

                    <elseif condition="($list.ext eq 'apk') and ($uptype eq '2')"/>

                            <a href="__PUBLIC__/uploads/{$list.uptxt}" class="btn-u btn-u-lg"><i class="fa fa-download"></i> 点击安装</a>

                    

		            	

		            </if>

	            </span>

	        </div>

	    </div>

	    <div class="span12" style="text-align:center;padding-top:20px;">

	<!---->

			<if condition="$list.ext eq 'ipa' ">

				<span class="label label-info">适用于iOS设备</span>

				<span class="label label-danger">苹果</span>

			<else />

				<span class="label label-info">适用于Android设备</span>

				<span class="label label-danger">安卓</span>

			</if>

	    	

	        

	<!---->

	    </div>

	</div>

<else />

	<div id="" class="view row" style="margin-top:30px;">    

	    <div class="span12 margin-bottom-20" style="text-align:center;">

	    <img src="../Public/icon/dafuapk.png" class="img-rounded" width="119" height="118" />

	        <div class="spinner" style="padding-top:20px; margin-bottom:150px;">

	        	<div id="showtext"></div>

	        	<div class="loading"></div>

	        	<form method="post" id="form" action="{:U('Appipa/checkpass')}">

		        	<h2>请输入密码</h2>

		            <h4>该应用设置了安装密码,请输入密码继续</h4>

		            <input type="hidden" name="checkid" value="{$list.id}">

	                <input type="password" id="aqpassword" name="aqpassword" style="width:270px;"><br><br>

	                <button type="submit" id="submitButton" class="btn-u btn-u-green">立刻进入</button>

	            </form>

	        </div>

	    </div>

	</div>

</if>

<!---->

    <hr class="devider devider-dotted">

    <div id="" class="view row margin-bottom-30">    

        <div class="span12" style="text-align:center;">或者用手机扫描下面的二维码安装<br><br>

            <img src="__PUBLIC__/png/{$qrcode}.png" width="117" height="116" />

        </div>

    </div>

<!---->

<if condition="$list.beifen neq '' ">

	<div style="margin:0px auto;padding:0px auto; width:65%; margin-bottom:30px;">

		<div style=" border:1px solid #efefef; background-color:#fafafa; padding:25px;">

			<h1>应用介绍</h1>

			<p style="word-break:break-all;">

				{$list.beifen}

			</p>

		</div>

	</div>

</if>

<link href="__STATIC__/wap/app.css" rel="stylesheet" type="text/css">

<div id="weixin" style="display: none">

    <div class="click_opacity"></div>

    <div class="to_btn">

        <span class="span1"><img src="__STATIC__/wap/click_btn.png"></span>

        <span class="span2"><em>1</em> 点击右上角<img src="__STATIC__/wap/menu.png">打开菜单</span>

        <span class="span2"><em>2</em> 选择<img src="__STATIC__/wap/safari.png">用Safari打开下载</span>

    </div>

</div>

<div id="weixin_an" style="display: none">

    <div class="click_opacity"></div>

    <div class="to_btn">

        <span class="span1"><img src="__STATIC__/wap/click_btn.png"></span>

        <span class="span2"><em>1</em> 点击右上角<img src="__STATIC__/wap/menu_android.png">打开菜单</span>

        <span class="span2 android_open"><em>2</em> 选择<img src="__STATIC__/wap/android.png"></span>

    </div>

</div>

<script src="__STATIC__/wap/slick.min.js"></script>

<script src="__STATIC__/wap/waypoints.min.js"></script>

<script src="__STATIC__/wap/jquery.themepunch.revolution.min.js"></script>

    <script>



        $(function(){

            var browser = {

                versions: function() {

                    var u = navigator.userAgent, app = navigator.appVersion;

                    return {

                        trident: u.indexOf('Trident') > -1,

                        presto: u.indexOf('Presto') > -1,

                        webKit: u.indexOf('AppleWebKit') > -1,

                        gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,

                        mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/),

                        ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),

                        android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1,

                        iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1,

                        iPad: u.indexOf('iPad') > -1,

                        webApp: u.indexOf('Safari') == -1

                    };

                }()

            }

            if(is_weixin())

            {

                if(browser.versions.ios || browser.versions.iPhone || browser.versions.iPad){

                    $('#weixin').show();

                }else{

                    $('#weixin_an').show();

                }

            }

            var os_type =  2;

            if(browser.versions.ios || browser.versions.iPhone || browser.versions.iPad){

                if(os_type == 2){

                    $('#down2').show();

                }else{

                    $('#down2').hide();

                    $('#down_tip').show().html('请使用安卓设备安装');

                }

            }else if(browser.versions.android){

                if(os_type == 1){

                    $('#down2').show();

                }else{

                    $('#down2').hide();

                    $('#down_tip').show().html('请使用IOS设备安装');

                }

            }

        })

        function ajaxTj()

        {

            var browser = {

                versions: function() {

                    var u = navigator.userAgent, app = navigator.appVersion;

                    return {

                        trident: u.indexOf('Trident') > -1,

                        presto: u.indexOf('Presto') > -1,

                        webKit: u.indexOf('AppleWebKit') > -1,

                        gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,

                        mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/),

                        ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),

                        android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1,

                        iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1,

                        iPad: u.indexOf('iPad') > -1,

                        webApp: u.indexOf('Safari') == -1

                    };

                }()

            }



            var tip_val = $('#ios_tips').val();

            if(tip_val ==1){

                $('.pos_all').css('display','block');

                $('#pos_inherit').addClass('pos_inherit');



            }

            if(!is_weixin())

            {

                                if(browser.versions.ios || browser.versions.iPhone || browser.versions.iPad){

                    $("#down2").hide();

                    $("#down_loading").show().delay(5000).fadeOut(100);

                    $("#install_tips").hide().delay(5000).fadeIn(200);

                }

                            }



            $.ajax({

                type: "GET",

                url:'/app/tj',

                data: {package_key:'98d0f7fc5457ddb0777534f47adb9119'},

                success: function(msg){

                    //console.log(msg);

                    if(msg == 1)

                    {

                        $('#down1').attr('href','#');

                        $("#down1").attr("target", "");

                        $('#down2').attr('href','');

                        $("#down2").attr("target", "#");

                    }

                }

            });

        }

        function is_weixin(){

            var ua = navigator.userAgent.toLowerCase();

            if(ua.match(/MicroMessenger/i)=="micromessenger") {

                return true;

            } else {

                return false;

            }

        }



        $(function() {

            $('.close_ios9').click(function(){

                $('.pos_all').css('display','none');

                $('#pos_inherit').removeClass('pos_inherit');

            });



            $("#btnFk").on("click", function() {

                $('#btncontact').css('display', 'block');

                $('#btnFk').css('display', 'none');

                $("#feedback_content_box").slideDown(600);

                $("#feedback_content_box").animate({top: 0}, 600);

                $("#feedback_content_box").focus();

            });







            $("#submit").on("click", function() {

                var contact = $('#btncontact').val().trim();

                var content = $('textarea').val().trim();

                var app_key = "3c4f68eaf91d14a5b16a9129f0ffba0f";

                var app_name = "定转爆粉";

                var url = '/feedback/add';



                if(!content || content == '反馈内容'){



                    $("#content_tips").css({display:'block'});

                    return false;

                }



                $('#toggle').css('display', 'none');

                $('#content_tips').css('display', 'none');

                $("#feedback_content_box").slideUp(600);

                $("#feedback_content_box").animate({ top: 20 }, 600);





                if( !contact || contact == 'Email/QQ/微信/电话' ){

                    contact = '匿名';

                }



                $.post(url,{contact:contact,content:content,app_key:app_key,app_name:app_name},function(msg){

                    if(msg){

                        $('#for_tips,textarea,#btnFk,#submit').css({display:'none'})

                    }else{

                        $('.feedback_tip').text('提交失败，请 <a href="/site/contact">吐槽</a>');

                    }

                    $('.feedback_tip').css({display:'block'})

                },'json')

            });

        })

    </script>



<if condition="$meminfo.isvip neq 0">
    <include file="Public/qt_footer" />
<else />
    <include file="Public/ggfooter" />
</if>

